package com.base.library.manager;

/**
 * Created by ChengZhi on 2017/4/30.
 */

public class QiniuManager {
/*    private static volatile QiniuManager instance;
    private UploadManager uploadManager;

    private QiniuManager() {
        Configuration config = new Configuration.Builder()
                .chunkSize(256 * 1024)  //分片上传时，每片的大小。 默认256K
                .putThreshhold(512 * 1024)  // 启用分片上传阀值。默认512K
                .connectTimeout(10) // 链接超时。默认10秒
                .responseTimeout(60) // 服务器响应超时。默认60秒
                .zone(Zone.httpAutoZone) // 设置区域，指定不同区域的上传域名、备用域名、备用IP。
                .build();
        uploadManager = new UploadManager(config);
    }

    public static QiniuManager getInstance() {
        if (instance == null) {
            synchronized (QiniuManager.class) {
                if (instance == null) {
                    instance = new QiniuManager();
                }
            }
        }
        return instance;
    }

    public void uploadFile(String path, QiniuListener qiniuListener) {

    }*/
}
